package top.whysu.edevice.exception;

/**
 * App相关业务异常
 */
public class AppException extends RuntimeException {

    /***
     * 响应码 {@link top.whysu.edevice.constant.AppConstant.Code}
     */
    private Integer result;

    /***
     * 响应信息
     */
    private String message;

    public AppException(Integer result, String message) {
        this.result = result;
        this.message = message;
    }

    public Integer getResult() {
        return result;
    }

    @Override
    public String getMessage() {
        return message;
    }
}

